﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace DSAClient
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
            gridpanel.Visible = false;
        }
        /// <summary>
        /// 打开图片
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            this.openFileDialog1.Filter = "image files (*.jpg)|*.jpg|image files (*.jpeg)|*.jpeg|image files (*.png)|*.png|All files (*.*)|*.*";
            this.openFileDialog1.Multiselect = true;
            this.openFileDialog1.FileName = "请选择文件";
            if (this.openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                string FileName = this.openFileDialog1.FileName;
                // 你的 处理文件路径代码           
            }
        }

        private void OpenImageFile(object sender, EventArgs e)
        {
            this.openFileDialog1.Filter = "image files (*.jpg)|*.jpg|image files (*.jpeg)|*.jpeg|image files (*.png)|*.png|All files (*.*)|*.*";
            this.openFileDialog1.FileName = "请选择文件";
            this.openFileDialog1.FileName = "请选择文件";
            if (this.openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                string FileName = this.openFileDialog1.FileName;
                // 你的 处理文件路径代码           
            }
        }
    }
}
